package com.yn.service.dao.zy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yn.common.model.zy.TInspectionItemDO;
import com.yn.service.zy.model.dto.TInspectionItemDTO;
import com.yn.service.zy.model.query.TInspectionItemQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TInspectionItemMapper extends BaseMapper<TInspectionItemDO> {
    /**
     * 分页获取检查项信息
     * @param query
     * @param page
     * @return
     */
    IPage<TInspectionItemDTO> listPage(@Param("query") TInspectionItemQuery query, IPage page);

    /**
     * 获取检查项详情
     * @param itemPriceId
     * @return
     */
    TInspectionItemDTO getInfo(@Param("itemPriceId") Integer itemPriceId);
}
